eststo O_TC10_1: estpost tabstat  n_b_s if  n_s==1 & s_in_sample==1 , listwise statistics(mean sd p10 p25 median p75 p90)  columns(statistics)
eststo O_TC10_2: estpost tabstat  range_sourcing_s if  n_s==1 & s_in_sample==1 , listwise statistics(mean sd p10 p25 median p75 p90)  columns(statistics)

local R R95 R90 R75 R50
foreach r of local R{
eststo O_TC10_`r': estpost tabstat  sh_`r'_s if  n_s==1 & s_in_sample==1 , listwise statistics( mean sd p10 p25 median p75 p90)  columns(statistics)
}

eststo O_TC10_3: estpost tabstat n_b_s range_sourcing_s sh_R95_s sh_R90_s sh_R75_s sh_R50_s if n_s==1 & s_in_sample==1,  statistics(N mean sd p10 p25 median p75 p90)  

esttab O_TC10* using "${tables}\TableC10.tex", cells("count(fmt(%9.0gc)) Mean(fmt(a2)) SD(fmt(a2)) p10(fmt(a2)) p25(fmt(a2)) p50(fmt(a2)) p75(fmt(a2)) p90(fmt(a2))")  nomtitles label nonumbers noobs unstack replace posthead(" ") nodep collabels(none) prehead(" ") postfoot(" ")